<!-- 载入公共头部 -->
  <!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>360商城</title>
		<script src="./Public/Home/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="./Public/Home/js/index.js" type="text/javascript" charset="utf-8"></script>
  		<script type="text/javascript" charset="utf-8" src="Public/Home/js/jquery.leanModal.min.js"></script>
  		<script src="./Public/Home/hdjs/hdjs.min.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="Public/Home/css/index.css">
		<link rel="stylesheet" type="text/css" href="Public/Home/hdjs/hdjs.css">
		<link rel="stylesheet" type="text/css" href="Public/Home/css/list.css">
<!--		<script >-->
<!--			$(function(){-->
<!--				$(".flatbtn").click(function(){-->
<!--					$(".bj").fadeToggle(100);-->
<!--					$(".div").slideToggle(100);-->
<!--				});-->
<!---->
<!--				$(".bj").click(function(){-->
<!--					$(".div").slideToggle(100);-->
<!--					$(".bj").fadeToggle(100);-->
<!---->
<!--				});-->
<!---->
<!--				$(".zq").click(function(){-->
<!--					var a=$(this).text();-->
<!--					$.ajax({-->
<!--						type:"post",-->
<!--						url:'http://localhost/project/360/index.php?m=Home&c=index&a=edl',-->
<!--						data:{cs:a},-->
<!--						dataType:'json',-->
<!--						success:function(db){-->
<!---->
<!--						}-->
<!--					})-->
<!--				});-->
<!---->
<!--				$(".btns").click(function(){-->
<!--					var cs=$(".cs").val();-->
<!---->
<!--					var zq=$(this).text();-->
<!--					alert(zq);-->
<!--					$.ajax({-->
<!--						type:"post",-->
<!--						url:'http://localhost/project/360/index.php?m=Home&c=index&a=edl',-->
<!--						data:{cs:cs},-->
<!--						dataType:'json',-->
<!--						success:function(db){-->
<!---->
<!--						}-->
<!--					})-->
<!---->
<!--				})-->
<!---->
<!--			})-->
<!--		</script>-->
		
	</head>
	<style type="text/css" media="screen">
		.bj{
			width:100%;
			height:100%;
			position:fixed;
			z-index:1000;
			background:rgba(0,0,0,0.5);
			display:none;
		}

		.div{
			width:300px;
			height:300px;
			background:#fff;
			position:fixed;
			z-index:1001;
			left:33%;
			top:50px;
			display:none;
		}
	</style>
	<body>
	<!--  -->
	<div class="div">
		<input type="text" class="cs" name="">
		<input type="text" class="csa" name="">
		<a class="btns title="">提交</a>
	</div>
	<div class="bj"></div>
	<!-- top头部部分开始 -->
		<div id="top">
			<div class="top">
				<div class="right">
					<ul>
						<!-- <li> <a href="javascript:;" title="" class="flatbtn" id="modaltrigger">登录</a></li> -->
												<li class="lis lis1"><a href="" title="">sjh</a>
							<ul>
								<li><a style="color:#24A238;" href="" title="">sjh</a></li>
								<li><a href="">我的订单</a></li>
								<li><a href="">我的喜欢</a></li>
								<li><a href="">收获地址</a></li>
								<li><a href="http://localhost/project/360/index.php?m=Home&c=Login&a=out">退出登录</a></li>
							</ul>
						</li>
												<li class="lis"> <a href="" title="">我的订单</a></li>
					</ul>
				</div>
			</div>
		</div>
		<!-- logo购物车部分开始 -->
		<div id="search">
			<div class="logo">
				<a href="http://localhost/project/360/index.php?m=Home&c=Index&a=index" title=""><img src="./Public/Home/images/logo.png" alt=""></a>
			</div>
			<!-- 搜索框部分开始 -->
			<div class="header_search">
				<div class="form">
					<form action="" method="post" accept-charset="utf-8">
						<input class="input" type="text" name="q" placeholder="360行车记录仪">
						<input class="submit" type="submit" value="">
					</form>
				</div>
								                
				<div class="shopcar">
					<div class="gwc">
						<a href="http://localhost/project/360/index.php?m=Home&c=Cart&a=index" title=""><i></i>我的购物车<span class="numm">(1)</span></a>
					</div>
					<div class="gwchtc">
												<ul>
														<li class="lf">
								<a href="http://localhost/project/360/index.php?m=Home&c=Content&a=index&gid=4"><img src="Upload/Content/16/08/16941472095914.jpg" alt=""></a>
								<span class="much">  360手机Q5 全网通流光金（4GB+128GB)</span>
								<div class="cars">
									￥<span class="picc">1999.00</span>×<span class="numm">1</span><strong class="del" sid="56cc8d7f">×</strong>
								</div>
							</li>
														<li class="jss">
								<div class="cart">
									<p>共计<span class="red red1">1</span>件   共<span class="red red2">1999</span>元</p>
								</div>
								<a href="http://localhost/project/360/index.php?m=Home&c=Cart&a=index">去购物车</a>
							</li>

						</ul>
											</div>
				</div>
				
               				<div class="hot">
				<a href="">智能出行伴侣</a><a href="">智能出行伴侣</a><a href="">智能出行伴侣</a>
				</div>
			</div>

			<script>
				$(function () {
					//异步删除购物车中的商品
					$(".del").click(function () {
						var sid=$(this).attr('sid');
						$.ajax({
							type:'post',
							url:'http://localhost/project/360/index.php?m=Home&c=Cart&a=del',
							data:{c:sid},
							dataType:'json',
							success:function (e) {
								var a="("+e.num+")";
								var b='<a href="javascript:;" title="">您的购物车没有东西<span>(0)</span></a>';
								if(e.num==0){
									$(".gwchtc").html(b);
								}else{
									$(".red1").html(e.num);
								}

								$(".numm").html(a);
								$(".red2").html(e.pri);
							}

						});
						$(this).parents('.lf').remove();
					});
				})
			</script>
			
		</div>
		<!-- top购物车部分结束 -->
		<!-- top分类部分开始 -->
		<div id="cate">	
			<div id="top_cate">
			<div class="cate">
				<a href=""> 全部智能酷品</a>
			</div>
			<ul>
								<li><a href="http://localhost/project/360/index.php?m=Home&c=List&a=index&cid=1" title="">手机及配件</a></li>
								<li><a href="http://localhost/project/360/index.php?m=Home&c=List&a=index&cid=4" title="">智能手表</a></li>
								<li><a href="http://localhost/project/360/index.php?m=Home&c=List&a=index&cid=5" title="">行车记录仪</a></li>
								<li><a href="http://localhost/project/360/index.php?m=Home&c=List&a=index&cid=6" title="">电脑设备</a></li>
								<li><a href="http://localhost/project/360/index.php?m=Home&c=List&a=index&cid=7" title="">智能机器人</a></li>
								<li><a href="http://localhost/project/360/index.php?m=Home&c=List&a=index&cid=19" title="">智能家居</a></li>
								<li><a href="http://localhost/project/360/index.php?m=Home&c=List&a=index&cid=20" title="">影音娱乐</a></li>
								<li><a href="http://localhost/project/360/index.php?m=Home&c=List&a=index&cid=21" title="">母婴玩具</a></li>
							</ul>
			</div>
		</div>

	<!-- 公共部分结束 -->
		<!-- 搜索导航区域 -->
		<div id="search_nav">
			<div class="search_nav"> 
				<span class="default_path">
					<a href="">首页</a>
						<i>&gt;</i>
					<a href="<?php echo U('List/index',['cid'=>0])?>">全部搜索结果</a>
						<i>&gt;</i>
						<?php foreach ($pidData as $v){?>
						<a href="<?php echo U('List/index',['cid'=>$v['cid']])?>"><?php echo $v['cname']?></a>
						<i>&gt;</i>
						<?php }?>
					
				</span> 
            	<span class="qwords">全部</span>
            </div>

             <div class="search_nav" <?php if($cateData==null){?>
                 style="display: none;"
               <?php }?>> 
				<div class="cate">
					分类：
				</div>
				<ul>
					<li><a style="font-weight: bold;" href="<?php echo U('List/index',['cid'=>0])?>" title="">不限</a></li>
					<?php foreach ($cateData as $v){?>
						<li><a style="font-weight: bold;" href="<?php echo U('List/index',['cid'=>$v['cid']])?>" title=""><?php echo $v['cname']?></a></li>
					<?php }?>						
				</ul>

            </div>
            <div class="search_nav" <?php if($cateData==null){?>
                 style="display: none;"
               <?php }?>>
				<div class="cate">
					品牌：
				</div>
				<ul>
					<li><a style="font-weight: bold;" href="<?php echo U('List/index',['bid'=>0,'cid'=>$_GET['cid']])?>" title="">不限</a></li>
					<?php foreach ($brandData as $k=>$v){?>
						<li><a style="font-weight: bold;" href="<?php echo U('List/index',['bid'=>$k,'cid'=>$_GET['cid']])?>" title=""><?php echo $v?></a></li>
					<?php }?>						
				</ul>

            </div>
            <?php if($newAttr!=null): ?>
			<?php foreach ($newAttr as $k=>$v){?>
				<?php 
					$temp=$param;
					$temp[$k]=0;
				?>
            <div class="search_nav"> 
				<div class="cate">
					<?php echo $v['name']?>：
				</div>
				<ul>
					<li><a href="<?php echo U('index',['cid'=>$_GET['cid'],'param'=>implode('_',$temp)])?>" <?php if($param[$k]==0){?>
                 class="hover"
               <?php }?> title="">不限</a></li>
					<?php foreach ($v['value'] as $vv){?>
						<?php
							$temp[$k]=$vv['gaid'];$bid=isset($_GET['bid'])?$_GET['bid']:0;
						?>
						<li><a href="<?php echo U('index',['cid'=>$_GET['cid'],'param'=>implode('_',$temp),'bid'=>$bid])?>" <?php if($vv['gaid']==$param[$k]){?>
                 class="hover"
               <?php }?> title=""><?php echo $vv['gavalue']?></a></li>
					<?php }?>
				</ul>
            </div>
			<?php }?>
			<?php endif ?>
             <div class="search_nav"> 
				<div class="cate">
					排序：
				</div>
				<ul>
					<li><a href="" title="默认">默认</a></li>
					<li><a href="" title="价格">价格</a></li>
					<li>
						<span class="filter_chkbox" data-monitor="search_paixu_youhuo">
			                <label>
			                    <input id="is_stock" type="checkbox"> 仅看有货产品
			                </label>
		            	</span>
		            </li>					
				</ul>
            </div>
		</div>
	<!-- 搜索导航区域结束 -->




		<div id="show_data">
			<div class="show">
				<ul class="list">

					<!-- 图片部分 -->

					<!-- <a href="" title="">
						<li class="li_item">
						<div class="img">
							<img src="./Public/Home/images/list001.jpg" alt="">
						</div>
						<div class="des">
							<p class="p1">360手机f4标准版移动4G魔力白</p>
							<p class="p2">599</p>
						</div>
						</li>
					</a> -->
					<?php if($goodsData==null){?>
                
						<div style="height: 200px; width: 1240px;margin: 0 auto;font-size:28px;text-align: center;line-height: 200px;">
							没有找到您想要的产品	
						</div>
					
               <?php }?>
					<?php foreach ($goodsData as $v){?>
					<li class="li_item">
						<div class="img">
							<a href="" title=""><img width="180" height="180" src="<?php echo $v['listpic']?>" alt=""></a>
						</div>
						<div class="des">
							<a href="" title=""><p class="p1"><?php echo $v['gname']?></p></a>
							<a href="" title=""><p class="p2"><?php echo $v['price']?></p></a>
						</div>
					</li>
					<?php }?>
					
				</ul>
			</div>
		</div>

		<div id="ser">
			<div class="ser">
				<div class="li">
					<i>7</i><span>7天无理由退货</span>
				</div>
				<div class="li">
					<i>15</i><span>15天免费换货</span>
				</div>
				<div class="li lin">
					<i>包</i><span>7满99元包邮</span>
				</div>
			</div>
		</div>


		<div id="footer">
	         <div class="ft">
	         		<br>
	         		<br>
	         		<br>
	              <p>360商城©2013-2016 360公司版权所有 京ICP备08010314号-43 京公网安备11000002000006号奇酷互联网络科技（深圳）有限公司 0755-61898999 深圳市南山区学苑大道1001号南山智园A2栋</p>
	         </div>
        </div>
</body>
</html>